Repository navigation
devkit:Release 验签失败换镜像源重试(修组件 CI 被 CDN 镜像滞后打挂) - #228
Merged
Merged
Conversation
CDN 镜像在 Termux 发版窗口会把新的 Release 和旧的 Release.gpg 搭在一起 (2026-11-16 实测 packages-cf.termux.dev),loadRepo 只在 base 源验一次, 镜像滞后就直接「bad signature」整个仓库作废、组件 CI 打包全挂。 改成和设备端 pkg.mjs 一样的换源重试:Release 与 Release.gpg 从同一个源 成对取、验不过就下一个源,全挂才报错。 Co-Authored-By: Claude Code <noreply@anthropic.com>
PR 安全初筛 / Safety pre-check改动 1 个文件;高 1 项、中 0 项。
「高」不等于有问题,只是这些地方一旦被动手脚,后果最重(能拿到签名钥匙、改到用户手机上的权限、或藏进看不见的内容),合并前请逐行看过。 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现象
组件仓库 CI 打包(build.yml)今天两次全挂:
Error: bad signature,speech/yosys/android-build 等一批组件「依赖解析失败」。同一时刻前后几分钟的另一轮构建是过的。根因(本机实测)
Termux 发版窗口里,Cloudflare 镜像
packages-cf.termux.dev会把新的 Release 和旧的 Release.gpg 搭在一起:bad signaturedevkit 的
loadRepo只在 base 源验一次就抛;而设备端 pkg.mjs 一直是「验不过换下一个源」的写法,所以只有 CI 侧会挂。CF 缓存几分钟后刷新,问题自动消失——但每次 Termux 发版都可能复发。修法
loadRepo照 pkg.mjs 的成熟模式改成换源重试:Release 与 Release.gpg 从同一个源成对取、验签或哈希不过就试下一个 mirror,全挂才报错。同时 Packages.gz 也从验签通过的源取(保持同源快照一致)。已本机验证:CF 镜像滞后时该逻辑自动落到直连源。
🤖 Generated with Claude Code